using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Easycmd
{
    public partial class InputBox : Form
    {
        public InputBox()
        {
            InitializeComponent();
            AcceptButton = button1;
            CancelButton = button2;
        }
        public static string get(string title,string text)
        {
            InputBox ib = new InputBox();
            ib.Text = title;
            ib.label1.Text = title ;
            ib.textBox1.Text = text ;
            ib.StartPosition = FormStartPosition.CenterScreen;
            if (ib.ShowDialog() == DialogResult.OK )
            {
                return ib.textBox1.Text ;
            }else{
                return "";
            }

        }

        private void button1_Click(object sender, EventArgs e)
        {

        }
    }
}